package cn.seecoder.courselearning.vo.course.test;

import cn.seecoder.courselearning.po.course.test.CourseUserTestQuestionPO;
import lombok.Data;

@Data
public class CourseUserTestQuestionVO {
    // 用户id
    private int userId;
    // 用户作答的题目id
    private int questionId;
    // 测试id
    private int testId;
    // 用户的答案
    private String answer;
    // 答案正确与否 0错误，1正确
    private int userOx;

    public CourseUserTestQuestionVO() {

    }

    public CourseUserTestQuestionVO(int userId, int questionId, int testId, String answer, int userOx) {
        this.userId = userId;
        this.questionId = questionId;
        this.testId = testId;
        this.answer = answer;
        this.userOx = userOx;
    }

    public CourseUserTestQuestionVO(CourseUserTestQuestionPO courseUserTestQuestionPO) {
        this.userId = courseUserTestQuestionPO.getUserId();
        this.questionId = courseUserTestQuestionPO.getQuestionId();
        this.testId = courseUserTestQuestionPO.getTestId();
        this.answer =courseUserTestQuestionPO.getAnswer();
        this.userOx = courseUserTestQuestionPO.getUserOx();
    }
}
